package com.iplant.basic.service.po.bms;

import java.io.Serializable;

import com.iplant.base.po.BasePO;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.enums.DBSchemas;
import com.iplant.base.utils.annotation.condition.DBCondition;
import com.iplant.base.utils.annotation.field.DBField;
import com.iplant.base.utils.annotation.join.DBJoin;
import com.iplant.base.utils.annotation.po.DBBasePO;

@DBBasePO(TableName = "bms_position", CheckName = {"Code"}, CodeAuto = true, CodePrefix = "POS-", Schemas =
        DBSchemas.Basic, CodeNum = 4)
public class BMSPosition extends BasePO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 部门ID
     */
    @DBCondition
    @DBField
    public int DepartmentID = 0;

    /**
     * 部门名称
     */
    @DBJoin(name = "Name", tableName = "bms_department", tableAsName = "department1", Schemas = DBSchemas.Basic,
            MainTableField = "DepartmentID")
    public String DepartmentName = "";

    public int PrevDepartmentID = 0;

    /**
     * 职责ID
     */
    @DBCondition
    @DBField
    public int DutyID = 0;

    @JsonProperty("DepartmentID")
    public int getDepartmentID() {
        return DepartmentID;
    }

    public void setDepartmentID(int departmentID) {
        DepartmentID = departmentID;
    }

    @JsonProperty("PrevDepartmentID")
    public int getPrevDepartmentID() {
        return PrevDepartmentID;
    }

    public void setPrevDepartmentID(int prevDepartmentID) {
        PrevDepartmentID = prevDepartmentID;
    }

    @JsonProperty("DutyID")
    public int getDutyID() {
        return DutyID;
    }

    public void setDutyID(int dutyID) {
        DutyID = dutyID;
    }

    @JsonProperty("DepartmentName")
    public String getDepartmentName() {
        return DepartmentName;
    }

    public void setDepartmentName(String departmentName) {
        DepartmentName = departmentName;
    }
}
